package com.es.code.user.dao;

import com.es.code.user.enity.ESUser;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author jichf
 * @Description
 * @create 2021-11-04 9:32
 */

@Repository
public interface EsUserRepository extends ElasticsearchRepository<ESUser, Long> {

    /**
     * 根据名字删除
     * @param name
     * @return
     */
    long deleteESUserByName(String name);

    /**
     * 根据名字查询
     * @param name
     * @return
     */
    List<ESUser> queryESUserByName(String name);


}
